<html>
<head>
    <include file="Common/top"/>
    <include file="Common/import_plugins"/>
</head>
<body>
<include file="Common/nav_menu"/>
<div class="layui-carousel" id="test10">
    <div carousel-item="">
        <div><img src="{:thumb($info['thumb'])}"></div>
    </div>
</div>
<div class="seller">
    商家：{:getFieldByModel('name','Seller',$info['link_seller'],'没有商家')}
</div>
<div class="title">
    {$info.name}
</div>
<div class="sn">
    {$info.sn}
</div>
<div class="real">
    实名制：{:getStatus($info['is_real'])}
</div>
<div class="price">
    单价：{$info.price}
</div>
<div class="stock">
    库存：{$info.stock}
</div>
<div class="stock">
    状态：{:getStatus($info['stock'])}
</div>
<div class="content">
    商品详情：
    <div>
        {:htmlspecialchars_decode($info['content'])}
    </div>
</div>
<a href="{:U('Pay/index',array('id'=>I('get.id')))}" class="layui-btn layui-btn-danger layui-btn-block">购买</a>
<script src="/Public/Home/js/common.js"></script>
<script>
    layui.use(['carousel', 'form'], function () {
        var carousel = layui.carousel
            , form = layui.form;
        //图片轮播
        carousel.render({
            elem: '#test10'
            , width: '100%'
            , interval: 5000
        });
    })
</script>
</body>
</html>